package com.dbz.service.Impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dbz.dao.JournalDao;
import com.dbz.entity.Journal;
import com.dbz.service.JournalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
@Service
public class JournalServiceImpl implements JournalService {
    @Resource
    private JournalDao journalDao;
    @Override
    public IPage<Journal> selectPage(IPage<Journal> page, Wrapper<Journal> queryMapper) {
        return journalDao.selectPage(page, queryMapper);
    }

    @Override
    public int delecteJournal(String jid) {
        return journalDao.delecteJournal(jid);
    }

    @Override
    public int insertJournal(String uname,String url,String scheme) {
        return journalDao.insertJournal(uname,url,scheme);
    }
}
